package com.own.business.system.dictionary.common.em;

import com.own.base.BaseResponseCode;
import lombok.AllArgsConstructor;

/**
 * DictionaryExceptionEnum
 *
 * @author chenxueli
 * @date 2023-06-21 09:51:52
 */
@AllArgsConstructor
@SuppressWarnings("all")
public enum DictionaryExceptionEnum implements BaseResponseCode {

    DEFAULT("dictionary_error", "数据字典异常"),
    CODE_EXIST("code_exist", "当前字典code已经存在，请修改为其他的code"),
    NAME_DUPLICATE("name_duplicate", "已经存在相同名称的数据信息，请更换其他名称"),
    UNABLE_EDIT("unable_edit", "当前数据信息不可以编辑，无法修改"),

    ;

    private final String code;

    private final String desc;

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String desc() {
        return this.desc;
    }

}
